#ifndef MAGIC_OBJECT_H
#define MAGIC_OBJECT_H

#include <iostream>
#include <qwidget.h>
#include <qimage.h>

using namespace std;

class MagicObject  : public QWidget
{
public:
	MagicObject();
	MagicObject(string mName, unsigned int iExtraStrengthValue, unsigned int iExtraCraftValue);
	virtual ~MagicObject();

	inline string getName(void) const {return mName; }; 
	inline unsigned int getExtraStrengthValue(void) const {return mExtraStrengthValue; };
	inline unsigned int getExtraCraftValue(void) const {return mExtraCraftValue; };
	inline void setPicture(std::string iFileName) { picture.load(iFileName.c_str()); };
	inline const QImage* getPicture(void) { return &picture; };

private:

	string mName;
	unsigned int mExtraStrengthValue; // The extra strength value the item gives to the carrier
	unsigned int mExtraCraftValue; // The extra craft value the item gives to the carrier
	QImage picture;
};

#endif;